<%@ page language="java" import="java.util.*,com.ncp.model.biz.product.*,com.ncp.model.dao.*,com.ncp.model.entity.product.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ArrayList listall = (ArrayList)request.getAttribute("listall");
ArrayList listparent = (ArrayList)request.getAttribute("listparent");
 ProductAllInfoBean pab = (ProductAllInfoBean)listall.get(0);
 ProductSortBean ps = (ProductSortBean)listparent.get(0);
 String ProductSortName = (String)request.getAttribute("ProductSortName");

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'detailupdate.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <style type="text/css">
  tr{ line-height:24px;}
  .one{ width:200px; text-align:center;}
  .two{ width:500px; padding:0 30px;}
  .three{ width:100px; text-align:center;}
  .three a{ text-decoration:none; color:#000;}
  .three a:hover{ text-decoration:underline; color:#666;}
  </style>
<table border="1">
  <tr>
    <td class="one">产品ID</td>
    <td class="two"><%=pab.getProductID()%></td>
    <td class="three">&nbsp;</td>
  </tr>
  <tr>
    <td class="one">产品名称</td>
    <td class="two"><%=pab.getProductName() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductName&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品类别</td>
    <td class="two"><%=ProductSortName %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductSortID&ProductID=<%=pab.getProductID()%>&ProductSortName=<%=ProductSortName %>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品图片</td>
    <td class="two"><%=pab.getProductImage() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductImage&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品促销价</td>
    <td class="two"><%=pab.getRetailPrice() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=RetailPrice&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品市场价</td>
    <td class="two"><%=pab.getMarketPrice() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=MarketPrice&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品型号</td>
    <td class="two"><%=pab.getProductType() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductType&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品会员折扣</td>
    <td class="two"><%=pab.getProductDiscount() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductDiscount&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">产品总数量</td>
    <td class="two"><%=pab.getCurrentPNumber() %></td>
    <td class="three"><a href="ManagerUpdateServlet?type=CurrentPNumber&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
    <td class="one">已经销售的数量</td>
    <td class="two"><%=pab.getSoldPNumber() %></td>
    <td class="three">&nbsp;</td>
  </tr>
  <tr>
    <td class="one">产品上架时间</td>
    <td class="two"><%=pab.getBeginTime() %></td>
    <td class="three">&nbsp;</td>
  </tr>
  <tr>
    <td class="one">产品下架时间</td>
    <td class="two"><%=pab.getEndTime() %>;</td>
    <td class="three"><a href="ManagerUpdateServlet?type=EndTime&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
  <tr>
  
    <td class="one">产品描述</td>
    <td class="two"><textarea style="margin:0 auto;resize:none; width:500px; height:200px;" ><%=pab.getProductDescription()%></textarea></td>
    <td class="three"><a href="ManagerUpdateServlet?type=ProductDescription&ProductID=<%=pab.getProductID()%>">修改</a></td>
  </tr>
</table>
  </body>
</html>
